]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-app: Use less concise error strings
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 11 Dec 2023 00:41:46 +0000 (01:41 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 21 Dec 2023 15:06:11 +0000 (15:06 +0000)
Now that the error information is displayed in a separate popover,
we can afford to be more verbose.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3051>

subprojects/extensions-app/js/main.js

index d656e201a6e039f0d2155a360877e16f46519964..0388eb693a4d0a12ac7bd88e3e764164e777b9d0 100644 (file)
@@ -482,11 +482,24 @@ var ExtensionRow = GObject.registerClass({
         if (!this.hasError)
             return '';
 
-        if (this._extension.state === ExtensionState.OUT_OF_DATE)
-            return _('The extension is incompatible with the current GNOME version');
+        if (this._extension.state === ExtensionState.OUT_OF_DATE) {
+            const {ShellVersion: shellVersion} = this._app.shellProxy;
+            return this.version !== ''
+                ? _('The installed version of this extension (%s) is incompatible with the current version of GNOME (%s). The extension has been disabled.').format(this.version, shellVersion)
+                : _('The installed version of this extension is incompatible with the current version of GNOME (%s). The extension has been disabled.').format(shellVersion);
+        }
+
+        const message = [
+            _('An error has occurred in this extension. This could cause issues elsewhere in the system. It is recommended to turn the extension off until the error is resolved.'),
+        ];
+
+        if (this._extension.error) {
+            message.push(
+                // translators: Details for an extension error
+                _('Error details:'), this._extension.error);
+        }
 
-        return this._extension.error
-            ? this._extension.error : _('The extension had an error');
+        return message.join('\n\n');
     }
 
     get keywords() {